import {MessageBox,Message} from 'element-ui'

export default function sconfirm(text) {
    return new Promise ((resolve,reject) =>{
        MessageBox.confirm( text,'系统提示',{
            confirmButtonText:'确定',
            cancelButtonText :'取消',
            type: 'warning'
        }).then(() => {
            resolve(true)
        }).catch(() => {
            reject(false)
        })
     })
}
